package com.dtwave.wechat.service.provider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.concurrent.locks.LockSupport;

@SpringBootApplication
@ImportResource({"classpath:spring-root.xml"})
@MapperScan("com.dtwave.wechat.service.provider.database.dao")
@EnableScheduling
public class Application {

    public static void main(String[] args) {
        ApplicationContext application = new SpringApplicationBuilder()
                .sources(Application.class)
                .run(args);

        LockSupport.park();
    }
}


